//
//  CustomerUIButton.m
//  Day4
//
//  Created by aaaaaa on 16/6/8.
//  Copyright © 2016年 赵五一. All rights reserved.
//

#import "CustomerUIButton.h"

@implementation CustomerUIButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


+ (instancetype)button{
    CustomerUIButton *button = [CustomerUIButton buttonWithType:UIButtonTypeCustom];
    
    NSString *path = [[NSBundle mainBundle] pathForResource:@"check" ofType:@"png"];
    UIImage *checkImage = [UIImage imageWithContentsOfFile:path];
    
    [button setImage:checkImage forState:UIControlStateNormal];
    
    NSString *path2 = [[NSBundle mainBundle] pathForResource:@"checked" ofType:@"png"];
    UIImage *checkedImage = [UIImage imageWithContentsOfFile:path2];
    [button setImage:checkedImage forState:UIControlStateFocused];
    
    return button;
}



@end
